home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / pascal / totsrc11.zip / PLUSINFO < prev    next >
Text File  |  1991-07-15  |  3KB  |  81 lines

  1.  
  2.                     Stony Brook Pascal+ Programming Notes
  3.                     =====================================
  4.  
  5.                             1    INSTALLATION
  6.                             2    COMPILING DEMOS
  7.                             3    OVERLAYING UNITS
  8.  
  9. 1 Installation
  10. --------------
  11. The Install program can install the Object Toolkit for Turbo Pascal and 
  12. Pascal+. If you select the Pascal+ installation, in addition to copying 
  13. the source, demonstration, and documentation files, the Install program 
  14. can automatically create an Object Library Module TOT.LIB and TOT.SBL. 
  15. Once created, these files significantly speed up the compile and link 
  16. process.
  17.  
  18. If you have already installed the Object Toolkit but did not create the
  19. LIB module, you should do so before proceeding. A log file has been
  20. installed in the directory \TJOCK\TOT. This logfile can be used to
  21. automatically generate a LIB file. (For more information on log files, 
  22. refer to page 40 of the Pascal+ Utilities Reference).
  23.  
  24. To run the log file change directories to \TJOCK\TOT and execute the
  25. SBE.EXE file, passing two parameters "TOT TOT", e.g.
  26.                 \path\SBE TOT TOT
  27. The SBE will be invoked, and the LIB files will be automatically created.
  28. Be  patient, and do not interrupt the process. The whole process may take
  29. between 10 and 20 minutes. Once completed, the \TJOCK\TOT will contain the
  30. files TOT.SBL and TOT.LIB.
  31.  
  32.  
  33. 2 Compiling Demo Programs
  34. -------------------------
  35.  
  36. This text is no substitute for reading the manual, however, if you
  37. want to get a quick feel for the Object Toolkit's (and Pascal+'s!)
  38. capabilities, try the following steps.
  39.  
  40. STEP 1 - Change directories to the Toolkit demo, e.g. CD\TJOCK\TOTDEMO
  41.  
  42. STEP 2 - Load SBE creating a TOTDEMO SBL, e.g. \SBPASCAL\SBE TOTDEMO
  43.  
  44. STEP 3 - Enter Y at the prompt.
  45.  
  46. STEP 4 - Select Options Environment from the menu, and change the compiler
  47.          to "Protected Mode Yes".
  48.  
  49. STEP 5 - Select Options Directories and change the include file path to
  50.          "SOURCE;\TJOCK\TOT\SOURCE"
  51.  
  52. STEP 6 - Select New Library and enter "\TJOCK\TOT\TOT"
  53.  
  54. STEP 7 - Select New Program and enter "TOTDEMO"
  55.  
  56. STEP 8 - Select the Run menu option (by pressing Alt-R).
  57.  
  58. The TOTDEMO.EXE file will then be compiled and linked. If you have sufficient
  59. memory, the program will then be executed, otherwise, exit SBE and execute
  60. TOTDEMO from DOS.
  61.  
  62. You are up and running with Pascal+ and the Object Toolkit!
  63.  
  64.  
  65. 3  Overlaying Units
  66. -------------------
  67.  
  68. Pascal+ handles overlays differently to Turbo Pascal. Briefly, to create a 
  69. program with overlays, the units to be overlayed must be compiled in the 
  70. {$O+} state (no differences so far!). In the main program, however, you
  71. do not use an OVERLAY unit, and the units to be overlayed should *not*
  72. be specified with the {$0 unitname} directive. Pascal+ requires an EDF file
  73. to identify which units are to be overlayed.
  74.  
  75. The demonstration files DEMOV1.PAS and DEMOV1.EDF files illustrate how to
  76. overlay with Pascal+. 
  77.  
  78. For further information, refer to Utilities Reference p 121
  79.  
  80.  
  81.